package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByUserBizAgentCity;
import com.baseweb.webadmin.core.model.pojo.ByUserBizAuth;
import com.baseweb.webadmin.core.model.pojo.User;
import org.joda.time.DateTime;

public class ByUserBizAgentCityBvo extends ByUserBizAgentCity{

    private User user;

    public static ByUserBizAgentCityBvo copyFrom(ByUserBizAgentCity byUserBizAgentCity, User user) {
        ByUserBizAgentCityBvo bvo = new ByUserBizAgentCityBvo();
        bvo.setId(byUserBizAgentCity.getId());
        bvo.setUserId(byUserBizAgentCity.getUserId());
        bvo.setProvince(byUserBizAgentCity.getProvince());
        bvo.setCity(byUserBizAgentCity.getCity());
        bvo.setCreateTime(byUserBizAgentCity.getCreateTime());
        bvo.setUpdateTime(byUserBizAgentCity.getUpdateTime());
        bvo.setUser(user);
        return bvo;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
